import {defineComponent} from 'vue';
import './index.scss';
import {LayoutTitle} from "@/components"; // 自动引用同名 CSS 文件

export default defineComponent({
    name: "card-com",
    props: {},
    setup(props, {slots}) {
        return () => (
            <div class={"slider-card__container"}>
                <LayoutTitle>
                    <span>{slots.title?.()}</span>
                    <span>{slots.action?.()}</span>
                </LayoutTitle>
                <div class="slider-card__main">
                    {slots.default?.()}
                </div>
            </div>
        )
    }
});
